package com.demo.filter;

/**
 * @author wangfengchen
 */
public class RequestContextHelper {

    private static final ThreadLocal<RequestContext> local = ThreadLocal.withInitial(RequestContext::new);

    public static void set(RequestContext context) {
        local.set(context);
    }

    public static RequestContext get() {
        return local.get();
    }

    public static void remove() {
        local.remove();
    }
}
